package com.youen.repository;

import com.youen.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * Created by Dell on 2018/9/7.
 */
@Repository
public interface UserRepository extends JpaRepository<User, String> {

    @Query("select i from User i")
    Page<User> findByPage(Pageable pageable);
}
